﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text.RegularExpressions;
using ZhiAo.WebLib.Data;
using ZhiAo.CommonLibrary;
using System.Collections.Generic;
using ZhiAo.Management;
using ZhiAo.Entities;

public partial class ShuiWenJu_BaseData_SiteEdit : System.Web.UI.Page
{
    private TabDataQuery tabDataQuery = new TabDataQuery();
    private string tableName = "SQ_STBPRP_B";
    private List<FieldItem> lstItem = new List<FieldItem>();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadEditData();
        }
    }

    //加载数据
    private void LoadEditData()
    {
        lstItem = TabDataEdit.GetListFieldItem(tableName);
        TabDataEdit.BuildEdit(lstItem, tbEditData);
    }

    //保存数据
    protected void btnSave_Click(object sender, EventArgs e)
    {
        lstItem = TabDataEdit.GetListFieldItem(tableName);
        TabDataEdit.SaveData(lstItem, tbEditData,"1245");
    }

   
}
